<%@ page language="java" contentType="text/html; charset=GBK" %> 
<%@ include file="/systeminfo/init.jsp" %>
<%@ page import="weaver.general.Util" %>

<jsp:useBean id="Util" class="weaver.general.Util" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<TITLE>joinway</TITLE>
</head>
<body>
<h1>joinway</h1>
<%

	String checkSql="select resourceid from hrmrolemembers where roleid='46' and resourceid='"+user.getUID()+"'";
	RecordSet.executeSql(checkSql);
	RecordSet.first();

	String resourceid = Util.null2String(RecordSet.getString("resourceid"));

	System.out.println("");
	System.out.println("");
	System.out.println("resourceid= "+resourceid);
	System.out.println("user.getUID()= "+user.getUID());
	System.out.println(resourceid.equals(user.getUID()));
	System.out.println("");
	System.out.println("");

	if(resourceid.equals(""+user.getUID())){
		//response.sendRedirect("/notice/noright.jsp");
		response.sendRedirect("/ReportServer?reportlet=joinway/3/04_gongshi_statistics.cpt&puserid="+user.getUID());
		return;
	}


	//else no right!
	response.sendRedirect("/notice/noright.jsp");

%>
</body>
</html>

